﻿namespace IdentityService.WebAPI.Controllers.UserAdmin;
public record EditAdminUserRequest(string Name, string Avatar, string PhoneNum);
public class EditAdminUserRequestValidator : AbstractValidator<EditAdminUserRequest>
{
    public EditAdminUserRequestValidator()
    {
        RuleFor(e => e.PhoneNum).NotNull().NotEmpty().MaximumLength(11);
        RuleFor(e => e.Name).NotNull().NotEmpty().MaximumLength(20);
        RuleFor(e => e.Avatar).NotNull().NotEmpty().MaximumLength(100);
    }
}